<template>
    <div>
       <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for='item in list' :key='item.id'>
					<router-link :to='"/home/newInfo/"+item.id'>
						<img class="mui-media-object mui-pull-left" :src="item.img_url">
						
                           <p class='mui-ellipsis'>
                                  {{item.title}}
                                  </p>
                        <div class="mui-media-body">
                            
                            <span>{{item.add_time |dateFormat()}}</span>
                            <span>{{item.click}}</span>
                            
                           
                         
						</div>
					</router-link>
				</li>
	
		</ul>
    </div>
</template>
<script>
export default {
    data() {
        return {
            list:[]
        }
    },
    created() {
        this.getNewList()
    },
    methods: {
        getNewList(){
            this.$http.get('api/getnewslist').then(roulist=>{
                if(roulist.body.status==0){
                    this.list=roulist.body.message
                }
            })
        }
    },
}
</script>
<style lang="scss" scoped>
    .mui-media-body{
    display: flex;
       justify-content: space-between; 
       font-size:12px;
       }
</style>